-- GENERATED SPELL FOR [Raging Thunder Lizard] --


function spell0_4726(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_4726', 638, 1)
end

function spell1_4726(pUnit, Event) --@Lizard Bolt,n/a--
pUnit:FullCastSpellOnTarget(5401,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4726', 2000, 1)
end

function Sorts_4726(pUnit, Event)
local choix_sorts_4726 = math.random(0, 1)
if choix_sorts_4726 == 0 then
pUnit:RegisterEvent('spell0_4726', 1, 1)
end
if choix_sorts_4726 == 1 then
pUnit:RegisterEvent('spell1_4726', 1, 1)
end
end

function mob4726_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4726', math.random(1500, 3000), 1)
end

function mob4726_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4726_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4726_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4726, 1, 'mob4726_Action')
RegisterUnitEvent(4726, 2, 'mob4726_Leave')
RegisterUnitEvent(4726, 3, 'mob4726_Kill')
RegisterUnitEvent(4726, 4, 'mob4726_Die')
